package com.hzeport.bgs22emduty.dto.dutyTel;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class DutyTelDTO {

    @ApiModelProperty(value = "值班类型：1.日常班；2.节假日；3.重要日；4.节假日（如全不选，4个类型都填上）", required = true)
    @JsonProperty(value = "sTypeList")
    @Size(min = 1, max = 4, message = "值班类型数目是1~4位")
    private List<String> sTypeList;
    @ApiModelProperty(value = "值班时段（如全不选，4个类型都填上）", required = true)
    @Size(min = 1, message = "值班类型数目是1~4位")
    private List<String> paramDutyIdList;
    @ApiModelProperty(value = "值班电话", required = true)
    @NotBlank(message = "值班电话不能为空")
    private String phoneTel;

}
